package com.example.myapplication.window;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.PopupWindow;
import android.widget.TextView;

import com.example.myapplication.R;
import com.example.myapplication.activity.GetDetailAty;
import com.example.myapplication.activity.PubGetAty;
import com.example.myapplication.activity.PubSellAty;
import com.example.myapplication.database.GetComment;
import com.example.myapplication.util.DbUtils;
import com.example.myapplication.util.TimeUtil;

public class AskPop extends PopupWindow {
    private Context context;


    public AskPop(Context context){
        super(context);
        this.context=context;
        setFocusable(true);
        init();
    }

    private void init() {
        View inflate = LayoutInflater.from(context).inflate(R.layout.pop_ask, null);
        setContentView(inflate);
        int width = ((Activity) context).getWindowManager().getDefaultDisplay().getWidth();
        int height = ((Activity) context).getWindowManager().getDefaultDisplay().getHeight();
        setWidth(width);
        setHeight(height);

         inflate.findViewById(R.id.btAsk).setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {


             }
         });
        inflate.findViewById(R.id.btOut).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });


    }

}
